package com.come4loves.game.module.fight.action;

import com.alibaba.fastjson.JSON;




/**
 * 动作基类
 * @author jerry
 *
 */
public abstract class Action {
	/**
	 * 卡牌id
	 */
	protected long id;
	public Action(long id) {
		this.id = id;
	}
	public String toString() {
		return this.getClass().getSimpleName() + "--" + JSON.toJSONString(this);
	}
	public abstract com.google.protobuf.GeneratedMessage.Builder<?> toProtocolBufferBuilder();
	
	public long getId() {
		return id;
	}
}
